<?php
/**
 * ClassName: RoomModel
 * Description: 病房model类
 * @Author 周昌
 * @Create 2023/11/10 15:10
 */

namespace model;


class RoomModel extends BaseModel
{
    protected $name='room';

    //时间获取器
    public function getAddTimeAttr($value){
        if(!empty($value)&& is_integer($value)){
            return date('Y-m-d H:i:s', $value);
        }else{
            return $value;
        }

    }
}